<ui:composition xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox"
	xmlns:p="http://primefaces.org/ui">
   
    <ui:param name="compTitle" value="编辑消息" />
    <ui:param name="compBean" value="#{commonContentViewBean}" /> 
	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	
	<h:form id="#{compId}_form">
		<p:fieldset  legend="#{compTitle}"
			toggleable="true" toggleSpeed="500"
			style="text-align: center;">
			<ui:decorate template="/layout/input/editable-template.xhtml">
			    <ui:param name="compColumnNum" value="2" />
			    <ui:param name="compLabelStyle" value="width:15%;"/>
			    <ui:param name="compContentStyle" value="width:35%;"/>
			    
				<!-- 第一行 -->
				<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
					<ui:param name="compBean1Id" value="informationsendd" />
					<ui:param name="compBean2Id" value="informationsender" />
					<ui:param name="compBean1Lable" value="消息发送人单位：" />
					<ui:param name="compBean2Lable" value="消息发送人：" />
					<ui:param name="compBean1Required" value="true" />
					<ui:param name="compBean2Required" value="true" />
					
					<ui:define name="compBean1Content">
						<h:inputText id="informationsendd" value="#{compBean.informationsendd}" />
					</ui:define>
					<ui:define name="compBean2Content">
						<h:inputText id="informationsender" value="#{compBean.informationsender}" />
					</ui:define>
					
				</ui:decorate>
				
				<!-- 第二行 -->
				<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
					<ui:param name="compBean1Id" value="informationreceiver" />
					<ui:param name="compBean1Lable" value="消息接收人用户名：" />
					<ui:param name="compBean2Id" value="informationreceived" />
					<ui:param name="compBean2Lable" value="消息接收人单位名：" />
					
					<ui:define name="compBean1Content"> 
						<h:inputText id="informationreceiver" value="#{compBean.informationreceiver}" />
					</ui:define>
					<ui:define name="compBean2Content"> 
						<h:inputText id="informationreceived" value="#{compBean.informationreceived}" />
					</ui:define>
					
				</ui:decorate>
				
			 
			</ui:decorate>
			
			<ui:decorate template="/layout/input/editable-template.xhtml">
			    <ui:param name="compColumnNum" value="2" />
			    <ui:param name="compLabelStyle" value="width:15%;"/>
			    <ui:param name="compContentStyle" value="width:35%;"/>
			    
			    <!-- 第四行 -->
				<ui:decorate template="/layout/input/editable-1c-custom-template.xhtml"> 
					<ui:param name="compBeanId" value="informations" />
					<ui:param name="compBeanLable" value="消息信息：" />
					 
					<ui:define name="compBeanContent"> 
						<p:inputTextarea id="informations" style="width:600px;height:200px;" effectDuration="400" value="#{compBean.informations}" />  
					</ui:define>
					
				</ui:decorate>
		    </ui:decorate>
			
		</p:fieldset>
		
		<p:separator />
			
		<center>
			<h:panelGrid id="#{compId}_control" columns="4" style="text-align:center;" cellspacing="2px">
				<p:commandButton  
				    actionListener="#{informationManageAction.update}" title="保存" 
					oncomplete="#{commonContentViewBean.id}_dialog.hide();"
					image="./img/icons/add.png" value="保存" style="margin:5px;"  >
					<h:inputHidden value="#{commonContentViewBean.id}"/>
				</p:commandButton>
				
				<p:commandButton title="关闭" type="button"
					onclick="#{commonContentViewBean.id}_dialog.hide();"
					image="./img/icons/cancel.png" value="关闭" style="margin:5px;">
				</p:commandButton>
			</h:panelGrid>
		</center>
		  
	</h:form>

		
</ui:composition>